package com.project.fortuneteller.service;

import com.project.fortuneteller.pojo.vo.*;
import com.project.fortuneteller.utils.Result;

import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * 实现 对 user 的各种操作
 */

public interface UserService {
  public Result login(UserLoginVO user,String tokenVal) throws InvalidKeyException, IllegalBlockSizeException, BadPaddingException;

  public Result register(UserLoginVO user) throws NoSuchAlgorithmException;

  public Result checkLogin(UserLoginVO user);

  Result loginFace(LoginFaceVO loginFaceVO);

  public Result logout(String token);

  public Result editorAndSave(UserEditorVo userEditorVo);

  public Result getUserInfo(String id);

  public Result getCurrentUserCount();

  public Result imageLoadAndRegisterFace(RegisterFaceVO registerFaceVO);

}
